/*
 * Copyright 2010 bedatadriven
 *
 *    Licensed under the Apache License, Version 2.0 (the "License");
 *    you may not use this file except in compliance with the License.
 *    You may obtain a copy of the License at
 *
 *        http://www.apache.org/licenses/LICENSE-2.0
 *
 *    Unless required by applicable law or agreed to in writing, software
 *    distributed under the License is distributed on an "AS IS" BASIS,
 *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *    See the License for the specific language governing permissions and
 *    limitations under the License.
 */

/**
 * JacobGen generated file --- do not edit
 *
 * (http://www.bigatti.it/projects/jacobgen)
 */
package com.bedatadriven.mso.powerpoint;

import com.bedatadriven.mso.core.MsoTriState;
import com.google.gwt.core.client.JavaScriptObject;

/** Wrapper for PowerPoint.DocumentWindow*/
public class DocumentWindow extends JavaScriptObject {

	protected DocumentWindow() { }
	public native final PpApplication getApplication()/*-{
		return this.Application;
	}-*/;

	public native final Object getParent()/*-{
		return this.Parent;
	}-*/;

	public native final PpSelection getSelection()/*-{
		return this.Selection;
	}-*/;

	public native final View getView()/*-{
		return this.View;
	}-*/;

	public native final Presentation getPresentation()/*-{
		return this.Presentation;
	}-*/;

	public native final int getViewType()/*-{
		return this.ViewType;
	}-*/;

	public native final void setViewType(int value)/*-{
		this.ViewType = value;
	}-*/;

	protected native final int _getBlackAndWhite()/*-{
		return this.BlackAndWhite;
	}-*/;

	public final MsoTriState getBlackAndWhite(){
		return MsoTriState.valueOf(_getBlackAndWhite());
	}
	protected native final void _setBlackAndWhite( int value)/*-{
		this.BlackAndWhite = value;
	}-*/;

	public final void setBlackAndWhite(MsoTriState value){
		_setBlackAndWhite(value.getValue());
	}
	protected native final int _getActive()/*-{
		return this.Active;
	}-*/;

	public final MsoTriState getActive(){
		return MsoTriState.valueOf(_getActive());
	}
	public native final int getWindowState()/*-{
		return this.WindowState;
	}-*/;

	public native final void setWindowState(int value)/*-{
		this.WindowState = value;
	}-*/;

	public native final String getCaption()/*-{
		return this.Caption;
	}-*/;

	public native final float getLeft()/*-{
		return this.Left;
	}-*/;

	public native final void setLeft(float value)/*-{
		this.Left = value;
	}-*/;

	public native final float getTop()/*-{
		return this.Top;
	}-*/;

	public native final void setTop(float value)/*-{
		this.Top = value;
	}-*/;

	public native final float getWidth()/*-{
		return this.Width;
	}-*/;

	public native final void setWidth(float value)/*-{
		this.Width = value;
	}-*/;

	public native final float getHeight()/*-{
		return this.Height;
	}-*/;

	public native final void setHeight(float value)/*-{
		this.Height = value;
	}-*/;

	public native final void fitToPage()/*-{
		this.FitToPage( );
	}-*/;

	public native final void activate()/*-{
		this.Activate( );
	}-*/;

	public native final void largeScroll(int down, int up, int toRight, int toLeft)/*-{
		this.LargeScroll( down, up, toRight, toLeft);
	}-*/;

	public native final void smallScroll(int down, int up, int toRight, int toLeft)/*-{
		this.SmallScroll( down, up, toRight, toLeft);
	}-*/;

	public native final DocumentWindow newWindow()/*-{
		return this.NewWindow( );
	}-*/;

	public native final void close()/*-{
		this.Close( );
	}-*/;

	public native final int getHWND()/*-{
		return this.HWND;
	}-*/;

	public native final Pane getActivePane()/*-{
		return this.ActivePane;
	}-*/;

	public native final Panes getPanes()/*-{
		return this.Panes;
	}-*/;

	public native final int getSplitVertical()/*-{
		return this.SplitVertical;
	}-*/;

	public native final void setSplitVertical(int value)/*-{
		this.SplitVertical = value;
	}-*/;

	public native final int getSplitHorizontal()/*-{
		return this.SplitHorizontal;
	}-*/;

	public native final void setSplitHorizontal(int value)/*-{
		this.SplitHorizontal = value;
	}-*/;

	public native final Object rangeFromPoint(int x, int y)/*-{
		return this.RangeFromPoint( x, y);
	}-*/;

	public native final int pointsToScreenPixelsX(float points)/*-{
		return this.PointsToScreenPixelsX( points);
	}-*/;

	public native final int pointsToScreenPixelsY(float points)/*-{
		return this.PointsToScreenPixelsY( points);
	}-*/;

	protected native final void _scrollIntoView(float left, float top, float width, float height,  int start)/*-{
		this.ScrollIntoView( left, top, width, height, start);
	}-*/;

	public final void scrollIntoView(float left, float top, float width, float height, MsoTriState start){
		_scrollIntoView(left, top, width, height, start.getValue());
	}
}
